package com.hzncc.flowable_diboot.project_contracts.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.lang.Double;
import java.math.BigDecimal;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;


import com.diboot.core.util.D;
import com.diboot.core.entity.BaseModel;
import com.diboot.core.entity.BaseEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 项目类合同取消 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-09-24
* Copyright © MyCorp
*/

@TableName("mdl_project_contract_cancel")
@Getter @Setter @Accessors(chain = true)
public class ProjectContractCancel extends BaseModel {
    private static final long serialVersionUID = 1153436427498809236L;

    /**
     * 租户
     */
    @NotNull(message = "租户不能为空")
    @TableField()
    private String tenantId;

    /**
     * 合同类型
     */
    @TableField()
    private String contractType;

    /**
     * 产品类型
     */
    @Length(max=100, message="产品类型长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String productType;

    /**
     * 发货情况
     */
    @TableField()
    private String shippingStatus;

    /**
     * 开票情况
     */
    @TableField()
    private String invoicingStatus;

    /**
     * 合同取消原因
     */
    @Length(max=500, message="合同取消原因长度应小于500")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String contractCancellationReason;

    /**
     * 申请人
     */
    @TableField()
    private String applicant;

    /**
     * 申请日期
     */
    @TableField()
    private LocalDateTime applicationDate;

    /**
     * 退票情况
     */
    @Length(max=100, message="退票情况长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String returnTicketStatus;

    /**
     * 退库情况
     */
    @Length(max=100, message="退库情况长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String returnStockStatus;

    /**
     * 项目类合同id
     */
    @TableField()
    private String contractId;

    /**
     * 客户id
     */
    @TableField()
    private String customerId;

    /**
     * 负责人
     */
    @TableField()
    private String responsiblePerson;

    /**
     * 销售员
     */
    @TableField()
    private String salesperson;

    /**
     * 审核附件
     */
    @TableField
    private String auditAttachment;

    /**
     * 原因类型
     */
    @TableField
    private String reasonType;
}